package com.wee.cronos.client.core.presenter;

 import com.google.web.bindery.event.shared.EventBus;
import com.google.inject.Inject;
import com.gwtplatform.mvp.client.Presenter;
import com.gwtplatform.mvp.client.View;
import com.gwtplatform.mvp.client.annotations.NameToken;
import com.gwtplatform.mvp.client.annotations.ProxyCodeSplit;
import com.gwtplatform.mvp.client.proxy.PlaceManager;
import com.gwtplatform.mvp.client.proxy.ProxyPlace;
import com.gwtplatform.mvp.client.proxy.RevealContentEvent;
import com.wee.cronos.client.place.NameTokens;

public class FolderExplorerPresenter extends Presenter<FolderExplorerPresenter.FolderExplorerView, FolderExplorerPresenter.FolderExplorerProxy>
{

	public interface FolderExplorerView extends View 
	{
	}
	
	@ProxyCodeSplit
	@NameToken(NameTokens.folderExplorer)
	public interface FolderExplorerProxy extends ProxyPlace<FolderExplorerPresenter> {}
	
	private final PlaceManager placeManager; 
	
	@Inject
	public FolderExplorerPresenter(final EventBus eventBus, final FolderExplorerView view, final FolderExplorerProxy proxy, final PlaceManager placeManager) 
	{
		super(eventBus, view, proxy);
		
		this.placeManager = placeManager;
	}

	protected void revealInParent() 
	{
		RevealContentEvent.fire(this, ProjectManagementPresenter.TYPE_RevealFolderExplorer, this);
	}
}
